package Test01;

import java.sql.SQLOutput;
import java.util.Scanner;

/**
 * ClassName:
 * Package:Test01
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/4/12 17:28
 * @Version 1.8
 */
public class NumberTest01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入本次成绩：");
        int num = sc.nextInt();
//
//        if (num >= 0 && num <= 100) {
//            int num1 = sc.nextInt();
//            if (num1 >= 80 || num1 <= 100) {
//                System.out.println("小明的成绩是：" + num1 + "等级为A");
//
//
//            } else if (num1 >= 70 || num1<= 80) {
//                System.out.println("小明的成绩是：" + num1 + "等级为B");
//
//
//            }else if (num1 >= 60 || num1 <= 70) {
//                System.out.println("小明的成绩是：" + num1 + "等级为C");
//
//            } else if (num1 >= 0 || num1 <= 60) {
//                            System.out.println("小明的成绩是：" + num + "等级为D");
//                        }
//                        sc.close();

                    switch (num/100){
                        case 100:
                        case 80:
                            System.out.println("小明的成绩为A"+num);
                            break;
                        case 79:
                        case 70:
                            System.out.println("小明的成绩为B--->"+num);
                            break;
                        case 69:
                        case 60:
                            System.out.println("小明的成绩为C--->"+num);
                            break;
                        case 59:
                        case 0:
                            System.out.println("小明的成绩为D--->"+num);
                            break;
                        default:
                            System.out.println("输入数据有误");
                            break;
                    }
                        sc.close();




                    }

                }



